<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <my-com></my-com>
    </div>
    <script src="vue.js"></script>
    <script type="text/html" id="my-com">
        <div>
            <header>组件内联模板</header>
            <main>内容区域</main>
            <footer>这是页脚</footer>
        </div>
    </script>
    <script>    
        Vue.component('my-com',{
            template:'#my-com',
        })
        new Vue({
            el:'#app'
        })
    </script>
</body>
</html>